Skip to content

Conversation

@grypez
Copy link
Contributor

@grypez grypez commented Apr 4, 2025

Refs: #217

Standardize logging with @ocap/utils logger throughout kernel package

  • Implement hierarchical logging with parent-child logger relationships
  • Replace all direct console usage with logger methods
  • Add tests for new logger functionality

@grypez
Copy link
Contributor Author

grypez commented Apr 9, 2025

Blocked on #476 due to the need for process-boundary crossing in kernel-test

@grypez
Copy link
Contributor Author

grypez commented Apr 9, 2025

Properly threading the logging in case of testing can be done in a few ways:

  • use a test vat bundler which endows the vat with our special console service
  • have the vat supervisor endow the vat with the console and rewrite the vat to expect it as a power

But in either case the test must cross the process boundary (write from a child process, read from the parent). We have already solved this problem with streams; the thing is just to have the VatHandle expose the read end of the console in a usable way.

@grypez
Copy link
Contributor Author

grypez commented Apr 22, 2025

Stale

@grypez grypez closed this Apr 22, 2025
@grypez grypez deleted the grypez/lognorm branch April 22, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants